import requests
class IhrmApi():
    @classmethod
    def loginApi(self,json_data):
        """登录接口"""
        url = "http://ihrm-test.itheima.net/api/sys/login"
        resp = requests.post(url=url,json=json_data)
        return resp




if __name__ == '__main__':
    print(IhrmApi.loginApi({"mobile": "13800000002", "password": "123456"}).json())